<% @main_header = "#{link_to('Ptrack:', '/')} #{@project.name if @project}: Notes" %>

<div style="color:red;">
<%= error_messages_for :note %>
</div>

<style lang="text/css">
	#new_note label{
		display:block;
		width:100%;
	}
</style>

<% form_for @note, :url => {:action => 'create'} do |f| %>
<div style="float: left; width: 100%;">
	<fieldset>
		<legend>Note Options</legend>
		
		<div>
			<p>
				<%= f.label :title, 'Note Title:' %>
				<%= f.text_field :title, :style => "width:197px;"%>
			</p>
			<p>
				<%= label :contact_id, 'Contact:' %>
				<%= select "contact", "contact_id", Contact.find(:all).collect{|c| [c.full_name, c.id]}, {:include_blank => 'Select a Contact...', :style =>"width:200px;"} %>	
			</p>
			<p>
				<%= f.label :body, 'Note:' %>
				<%= f.text_area :body, {:style => "width:587px; height:140px;"} %>
			</p>
		</div>
	
	</fieldset>
</div>
<br />

<table style="width: 100%;">
	<tr>
		<td style="text-align: right; width: 50%;">
		<%= f.submit "Save Note" %> 
		</td>
		

<% end %>

<td style="text-align: left; width: 50%;">
		<%= button_to "Cancel", {:action => "index"}, {:method => :get} %>
		</td>
	</tr>
</table>
